package com.java.doMain;

import java.util.List;

/**
 * @Author xyd
 * @Date 2021/12/23 13:06
 * @Version 1.0
 */
public class PageBean {

    private int currentPage;// 当前页码
    private int totalCount;// 总条数
    private int totalPage;// 总页数
    private final int currentCount = 4;// 每页条数
    private List<commodity> ps;// 每页显示的数据
    private String category;//类别
    private String searchfield;//模糊搜索的图书名

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getCurrentCount() {
        return currentCount;
    }

    public List<commodity> getPs() {
        return ps;
    }

    public void setPs(List<commodity> ps) {
        this.ps = ps;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getSearchfield() {
        return searchfield;
    }

    public void setSearchfield(String searchfield) {
        this.searchfield = searchfield;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "currentPage=" + currentPage +
                ", totalCount=" + totalCount +
                ", totalPage=" + totalPage +
                ", currentCount=" + currentCount +
                ", ps=" + ps +
                ", category='" + category + '\'' +
                ", searchfield='" + searchfield + '\'' +
                '}';
    }
}
